#!/bin/bash

hostip=127.0.0.1
port=11211
password=

# printf 'stats\r\n' |nc $hostip 11211 |awk '{if ($2 == "'$1'")print  $3}'

resutl= `printf 'stats\r\n' |nc $hostip $port |awk '{if ($2 == "'$1'")print  $3}'`
echo resutl

